import request from '@/utils/request'

// 分页查询资产位置
export function queryAssetLocationPage(params) {
  return request({
    url: '/office/asset/assetLocation/query',
    method: 'get',
    params: params
  })
}

// 检索所有资产位置
export function retrieveAssetLocationList(params) {
  return request({
    url: '/office/asset/assetLocation/retrieve',
    method: 'get',
    params: params
  })
}

// 获取资产位置详细信息
export function obtainAssetLocation(id) {
  return request({
    url: '/office/asset/assetLocation/obtain',
    method: 'get',
    params: {id: id}
  })
}

// 新增资产位置
export function createAssetLocation(data) {
  return request({
    url: '/office/asset/assetLocation/create',
    method: 'post',
    data: data
  })
}

// 修改资产位置
export function updateAssetLocation(data) {
  return request({
    url: '/office/asset/assetLocation/update',
    method: 'post',
    data: data
  })
}

// 删除资产位置
export function deleteAssetLocationById(id) {
  return request({
    url: '/office/asset/assetLocation/delete',
    method: 'post',
    params: {id: id}
  })
}

// 批量删除资产位置
export function batchDeleteAssetLocationList(ids) {
  return request({
    url: '/office/asset/assetLocation/batchDelete',
    method: 'post',
    data: ids
  })
}